package com.brownalexis.application.controller;

/**
 * @Author: brownalexis
 * @Date: 2024/04/18 16:35
 * @Description:
 */
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.UUID;

@RestController
public class IdentifierController {

    @GetMapping("/generateIdentifier")
    public String generateIdentifier() {
        long timestamp = System.currentTimeMillis();
        String uniqueIdentifier = UUID.randomUUID() + "_" + timestamp;
        return uniqueIdentifier;
    }
}

